﻿using System;
using System.Collections.Generic;
using System.Text;

namespace KaiXin001er.Objects
{
    [Serializable]
    public class ProgramConfiger
    {
        private bool openDebug=true;
        /// <summary>
        /// 是否开启Debug
        /// </summary>
        public bool OpenDebug
        {
            get { return openDebug; }
            set { openDebug = value; }
        }
        private int _DelayTime=1000;

        /// <summary>
        /// 访问服务器的延迟时间 单位是秒
        /// </summary>
        public int DelayTime
        {
            get { return _DelayTime; }
            set { _DelayTime = value; }
        }

        private bool _EnableCycle = false;
        /// <summary>
        /// 启动开心循环
        /// </summary>
        public bool EnableCycle
        {
            get { if (_EnableCycle == null)_EnableCycle = false; return _EnableCycle; }
            set { _EnableCycle = value; }
        }

        private int _HappyCycle = 12;
        /// <summary>
        /// 开心循环的周期 单位小时
        /// </summary>
        public int HappyCycle
        {
            get { if (_HappyCycle == null)_HappyCycle = 12; return _HappyCycle; }
            set { _HappyCycle = value; }
        }
        /// <summary>
        /// 第一次开心的时间 
        /// </summary>
        private DateTime _HappyTime = DateTime.Now;

        public DateTime HappyTime
        {
            get { if (_HappyTime == null)_HappyTime = DateTime.Now; return _HappyTime; }
            set { _HappyTime = value; }
        }


    }
}
